package fun._6742.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@ApiModel(value = "UpdateProductRequest",description = "商品更改请求")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdateProductRequest {


    @ApiModelProperty(value = "名称",example = "珍珠奶茶")
    private String title;

    @ApiModelProperty(value = "详情",example = "一杯好喝的珍珠奶茶")
    private String detail;

    @ApiModelProperty(value = "老价格",example = "14")
    private BigDecimal oldPrice;

    @ApiModelProperty(value = "新价格",example = "14")
    private BigDecimal price;

    @ApiModelProperty(value = "库存",example = "100")
    private Integer stock;

    @ApiModelProperty(value = "类别",example = "奶茶类")
    private String category;
}
